// src/components/l-search-good/index.js
const App = getApp()
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    goods: Object
  },

  /**
   * 组件的初始数据
   */
  data: {},
  attached: function() {},

  /**
   * 组件的方法列表
   */
  methods: {
    goGoods() {
      if (App.globalData.ruleDetail == 1) {
        return false
      }
      const goodsId = this.properties.goods.id
      wx.navigateTo({
        url: `/pages/goodsDetail/index?id=${goodsId}`
      })
    }
  }
})
